import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: '登录',
    component: () => import('@/views/Login.vue')
  },
  {
    path: '/home',
    name: 'home',
    component:  () => import('@/views/HomeView.vue')
  },
]

const router = createRouter({
  history: createWebHistory(), 
  routes
})
 
export default router
